<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class template subtract_with_carry_engine</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../boost_random/reference.html#doxygen.headers.subtract__with__carry_8hpp" title="Header &lt;boost/random/subtract_with_carry.hpp&gt;">
<link rel="prev" href="classboost_1_1random_1_1subtract__with__carry__01__engine.html" title="Class template subtract_with_carry_01_engine">
<link rel="next" href="taus88_8hpp_1a3822a73532a76cfeca0db9888d676c72.html" title="Type definition taus88">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1random_1_1subtract__with__carry__01__engine.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_random/reference.html#doxygen.headers.subtract__with__carry_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="taus88_8hpp_1a3822a73532a76cfeca0db9888d676c72.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template subtract_with_carry_engine</span></h2>
<p>boost::random::subtract_with_carry_engine</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../boost_random/reference.html#doxygen.headers.subtract__with__carry_8hpp" title="Header &lt;boost/random/subtract_with_carry.hpp&gt;">boost/random/subtract_with_carry.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> IntType<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> w<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> s<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> r<span class="special">&gt;</span> 
<span class="keyword">class</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a> <span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> <span class="identifier">IntType</span> <a name="doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1a0abd40c4924d60b817bab283b7070796"></a><span class="identifier">result_type</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#id-1_3_32_5_6_45_1_1_2_10-bb">public member functions</a></span>
  <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1aa3ad25a1f6b26e852f18c31d2518989f"><span class="identifier">subtract_with_carry_engine</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">explicit</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1a434322d770d0f55dcf2425ffc84ac138"><span class="identifier">subtract_with_carry_engine</span></a><span class="special">(</span><span class="identifier">IntType</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> SeedSeq<span class="special">&gt;</span> <span class="keyword">explicit</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1a5fb7d1f151ae75d90d67176767a343ee"><span class="identifier">subtract_with_carry_engine</span></a><span class="special">(</span><span class="identifier">SeedSeq</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> It<span class="special">&gt;</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1a4b7801797a1294be1a5ae4131d7e4db3"><span class="identifier">subtract_with_carry_engine</span></a><span class="special">(</span><span class="identifier">It</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">It</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1ab881f26a10563b0d5d24a43c7692bf42"><span class="identifier">seed</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1aa7c2b2669b6d0eb6a458395863540c06"><span class="identifier">seed</span></a><span class="special">(</span><span class="identifier">IntType</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> SeedSeq<span class="special">&gt;</span> <span class="keyword">void</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1a951d08952165ba06ab631a3836f588da"><span class="identifier">seed</span></a><span class="special">(</span><span class="identifier">SeedSeq</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> It<span class="special">&gt;</span> <span class="keyword">void</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1ab281e9a5766713bb89f47723d648016e"><span class="identifier">seed</span></a><span class="special">(</span><span class="identifier">It</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">It</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">result_type</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1adef72791818a9e793938057368ce797d"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1ab56fa8d2f053db6a615c1c9769054cab"><span class="identifier">discard</span></a><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">uintmax_t</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> It<span class="special">&gt;</span> <span class="keyword">void</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1a79111ff29f8247a6d94ac5fa3d78cc55"><span class="identifier">generate</span></a><span class="special">(</span><span class="identifier">It</span><span class="special">,</span> <span class="identifier">It</span><span class="special">)</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#id-1_3_32_5_6_45_1_1_2_11-bb">public static functions</a></span>
  <span class="keyword">static</span> <span class="identifier">result_type</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1a7483d8f67402176e487a1fe1e0b2047f"><span class="identifier">min</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">result_type</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1a6d81a97655169449d6f9f36338e62f93"><span class="identifier">max</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#id-1_3_32_5_6_45_1_1_2_12-bb">friend functions</a></span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> CharT<span class="special">,</span> <span class="keyword">typename</span> Traits<span class="special">&gt;</span> 
    <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> <span class="special">&amp;</span> 
    <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1aa54f7c76526fd821d77e99bdaf2638df"><span class="keyword">operator</span><span class="special">&lt;&lt;</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> 
               <span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> CharT<span class="special">,</span> <span class="keyword">typename</span> Traits<span class="special">&gt;</span> 
    <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> <span class="special">&amp;</span> 
    <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1a86acc5a48c5c5ec3eb7192160c5e6cb3"><span class="keyword">operator</span><span class="special">&gt;&gt;</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> 
               <span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1a543513198d3c9c27601331d1ce9e5731"><span class="keyword">operator</span><span class="special">==</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a> <span class="special">&amp;</span><span class="special">,</span> 
                  <span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html#doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1acbb14c47451624e5c687b05635c3a0a2"><span class="keyword">operator</span><span class="special">!=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a> <span class="special">&amp;</span><span class="special">,</span> 
                  <span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>

  <span class="comment">// public data members</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">word_size</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">long_lag</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">short_lag</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">uint32_t</span> <span class="identifier">default_seed</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keyword">bool</span> <span class="identifier">has_fixed_range</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">result_type</span> <span class="identifier">modulus</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.32.5.6.44.4.4"></a><h2>Description</h2>
<p>Instantiations of <code class="computeroutput"><a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a></code> model a  <a class="link" href="../../boost_random/reference.html#boost_random.reference.concepts.pseudo_random_number_generator" title="Pseudo-Random Number Generator">pseudo-random number generator</a> . The algorithm is described in</p>
<p> </p>
<div class="blockquote"><blockquote class="blockquote"><p>  "A New Class of Random Number Generators", George Marsaglia and Arif Zaman, Annals of Applied Probability, Volume 1, Number 3 (1991), 462-480.  </p></blockquote></div>
<p>  </p>
<div class="refsect2">
<a name="id-1.3.32.5.6.44.4.4.4"></a><h3>
<a name="id-1_3_32_5_6_45_1_1_2_10-bb"></a><code class="computeroutput">subtract_with_carry_engine</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><a name="doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1aa3ad25a1f6b26e852f18c31d2518989f"></a><span class="identifier">subtract_with_carry_engine</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Constructs a new <code class="computeroutput"><a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a></code> and seeds it with the default seed. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">explicit</span> <a name="doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1a434322d770d0f55dcf2425ffc84ac138"></a><span class="identifier">subtract_with_carry_engine</span><span class="special">(</span><span class="identifier">IntType</span> value<span class="special">)</span><span class="special">;</span></pre>
<p>Constructs a new <code class="computeroutput"><a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a></code> and seeds it with <code class="computeroutput">value</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> SeedSeq<span class="special">&gt;</span> <span class="keyword">explicit</span> <a name="doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1a5fb7d1f151ae75d90d67176767a343ee"></a><span class="identifier">subtract_with_carry_engine</span><span class="special">(</span><span class="identifier">SeedSeq</span> <span class="special">&amp;</span> seq<span class="special">)</span><span class="special">;</span></pre>
<p>Constructs a new <code class="computeroutput"><a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a></code> and seeds it with values produced by <code class="computeroutput">seq.generate()</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> It<span class="special">&gt;</span> <a name="doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1a4b7801797a1294be1a5ae4131d7e4db3"></a><span class="identifier">subtract_with_carry_engine</span><span class="special">(</span><span class="identifier">It</span> <span class="special">&amp;</span> first<span class="special">,</span> <span class="identifier">It</span> last<span class="special">)</span><span class="special">;</span></pre>
<p>Constructs a new <code class="computeroutput"><a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a></code> and seeds it with values from a range. first is updated to point one past the last value consumed. If there are not enough elements in the range to fill the entire state of the generator, throws <code class="computeroutput">std::invalid_argument</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1ab881f26a10563b0d5d24a43c7692bf42"></a><span class="identifier">seed</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Seeds the generator with the default seed. </p>
</li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1aa7c2b2669b6d0eb6a458395863540c06"></a><span class="identifier">seed</span><span class="special">(</span><span class="identifier">IntType</span> value<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> SeedSeq<span class="special">&gt;</span> <span class="keyword">void</span> <a name="doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1a951d08952165ba06ab631a3836f588da"></a><span class="identifier">seed</span><span class="special">(</span><span class="identifier">SeedSeq</span> <span class="special">&amp;</span> seq<span class="special">)</span><span class="special">;</span></pre>
<p>Seeds the generator with values produced by <code class="computeroutput">seq.generate()</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> It<span class="special">&gt;</span> <span class="keyword">void</span> <a name="doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1ab281e9a5766713bb89f47723d648016e"></a><span class="identifier">seed</span><span class="special">(</span><span class="identifier">It</span> <span class="special">&amp;</span> first<span class="special">,</span> <span class="identifier">It</span> last<span class="special">)</span><span class="special">;</span></pre>
<p>Seeds the generator with values from a range. Updates <code class="computeroutput">first</code> to point one past the last consumed value. If the range does not contain enough elements to fill the entire state of the generator, throws <code class="computeroutput">std::invalid_argument</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">result_type</span> <a name="doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1adef72791818a9e793938057368ce797d"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Returns the next value of the generator. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1ab56fa8d2f053db6a615c1c9769054cab"></a><span class="identifier">discard</span><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">uintmax_t</span> z<span class="special">)</span><span class="special">;</span></pre>
<p>Advances the state of the generator by <code class="computeroutput">z</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> It<span class="special">&gt;</span> <span class="keyword">void</span> <a name="doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1a79111ff29f8247a6d94ac5fa3d78cc55"></a><span class="identifier">generate</span><span class="special">(</span><span class="identifier">It</span> first<span class="special">,</span> <span class="identifier">It</span> last<span class="special">)</span><span class="special">;</span></pre>
<p>Fills a range with random values. </p>
</li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.32.5.6.44.4.4.5"></a><h3>
<a name="id-1_3_32_5_6_45_1_1_2_11-bb"></a><code class="computeroutput">subtract_with_carry_engine</code> public static functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="keyword">static</span> <span class="identifier">result_type</span> <a name="doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1a7483d8f67402176e487a1fe1e0b2047f"></a><span class="identifier">min</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Returns the smallest value that the generator can produce. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">static</span> <span class="identifier">result_type</span> <a name="doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1a6d81a97655169449d6f9f36338e62f93"></a><span class="identifier">max</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Returns the largest value that the generator can produce. </p>
</li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.32.5.6.44.4.4.6"></a><h3>
<a name="id-1_3_32_5_6_45_1_1_2_12-bb"></a><code class="computeroutput">subtract_with_carry_engine</code> friend functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> CharT<span class="special">,</span> <span class="keyword">typename</span> Traits<span class="special">&gt;</span> 
  <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> <span class="special">&amp;</span> 
  <a name="doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1aa54f7c76526fd821d77e99bdaf2638df"></a><span class="keyword">operator</span><span class="special">&lt;&lt;</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> <span class="special">&amp;</span> os<span class="special">,</span> 
             <span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a> <span class="special">&amp;</span> f<span class="special">)</span><span class="special">;</span></pre>
<p>Writes a <code class="computeroutput"><a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a></code> to a <code class="computeroutput">std::ostream</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> CharT<span class="special">,</span> <span class="keyword">typename</span> Traits<span class="special">&gt;</span> 
  <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> <span class="special">&amp;</span> 
  <a name="doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1a86acc5a48c5c5ec3eb7192160c5e6cb3"></a><span class="keyword">operator</span><span class="special">&gt;&gt;</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> <span class="special">&amp;</span> is<span class="special">,</span> 
             <span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a> <span class="special">&amp;</span> f<span class="special">)</span><span class="special">;</span></pre>
<p>Reads a <code class="computeroutput"><a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a></code> from a <code class="computeroutput">std::istream</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1a543513198d3c9c27601331d1ce9e5731"></a><span class="keyword">operator</span><span class="special">==</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a> <span class="special">&amp;</span> x_<span class="special">,</span> 
                <span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a> <span class="special">&amp;</span> y<span class="special">)</span><span class="special">;</span></pre>
<p>Returns true if the two generators will produce identical sequences of values. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="doxygen.headers.classboost_1_1random_1_1subtract__with__carry__engine_1acbb14c47451624e5c687b05635c3a0a2"></a><span class="keyword">operator</span><span class="special">!=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a> <span class="special">&amp;</span> lhs<span class="special">,</span> 
                <span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1subtract__with__carry__engine.html" title="Class template subtract_with_carry_engine">subtract_with_carry_engine</a> <span class="special">&amp;</span> rhs<span class="special">)</span><span class="special">;</span></pre>
<p>Returns true if the two generators will produce different sequences of values. </p>
</li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2000-2005 Jens Maurer<br>Copyright © 2009, 2010 Steven Watanabe<br>Copyright © 2022-2025 Matt
      Borland<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1random_1_1subtract__with__carry__01__engine.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_random/reference.html#doxygen.headers.subtract__with__carry_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="taus88_8hpp_1a3822a73532a76cfeca0db9888d676c72.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
